<?php

/**
 * 版本更新模块
 *
 * Created by PhpStorm.
 * User: evan
 * Date: 2016/11/25
 * Time: 下午10:13
 */
class Version extends MY_Public_Api_Controller
{
    public function index()
    {

    }


    /**
     * 检测版本是否有更新
     */
    public function check()
    {
        $client     = trim($this->input->get_post('client'));
        $version_no = trim($this->input->get_post('version_no'));


        $this->load->service('common/service_common_version');
        $data = $this->service_common_version->check($client, $version_no);


        $this->json_output($data['data'], $data['status']);
    }
}